Increase phpunit code coverage

Closes #58 
It's not clear which function throws exception and what are expected results.