better test fail messages on exception
avoid errors when $application is not defined