Migrated tests from inst/tests/test-trace.R to tests/misc.R