Add test that induces null pointer exception