Add PHPUnit and fix class attachment