added a test for immutable