fix module count and filter out Core- and Compiler-prefixed modules in modules unit tests
fix unit test for toy build under hierarchical module naming scheme