test cases that should raise exceptions