added some tests and solved some bugs
adding files to test phpunit in heroku