unit tests for collection