init_for_tests
This function is useful for tests. It will enable `TRACE` logging and also uses the libtest aware writer.