trace now working for tests