Respect test classes during migration

Unit test classes have a separate class root (usually, `Tests/` instead of `Classes/`). This needs to be respected during migration.