Implemented all tests.