added unit tests for collections