phpunit test cases

write up the test cases using uml as guide