some basic test cases using phpunit