Adding test for getter/setter on Rule class for Cast