Converted tests to phpunit

Added makefile to run unit tests, use linting and style checks