tests for collection classes