get AMI test to throw custom exception to teamcity