Added initial JUnit tests for base core classes