or we could use already existing unit testing framework [shunit2](https://code.google.com/p/shunit2/)