Add tests for addPropertyWithValue