Added unit tests for some bugs I ran accross in the sample