raise error explicitly in test case refs #72