refactor phpunit and update build file