Simplified TestNullPointer test cases