Add test case for invalid initialization