Added a bunch of tests for myt. Cleaned up some code and removed an unnecessary function.