moved test classes from core/lib/ to core/lib/test