implemented a comprehensive test suite