finished coding the tests for triple crown
fixing bugs