adding tests and fixing bugs the tests found