add few setters and test case "should generate nullable index"