Added PHP versions to travis-ci
Fixed bug in unit test