moved unit tests to individual test files in tests/ dir