add test with immutable collections