Add PHPUnit test for AbstractApplication