phpunit tests, fix singletoner logic exception
phpunit task for travis