Implemented all tests