Add test to ensure that invalid properties cannot be set