added some tests and fixed the function calling
Merge branch 'master' of git://github.com/kalvinnchau/cse131