added error handling for non existent AB tests