exception expected test added