test fails instead of crashes