Setting up phpunit configuration and fixing coverage errors