Added PhpUnit tests for all methods