updated test case to use immutable set per the type declaration