phpunit test

Added phpunit class and methods