Add test cases for initializing with invalid inputs