test fails if no exception is raised