Remove unused method.
Fiy wrong return value.
Add basic phpunit tests.