Add tests for property setters and some fixes