updating implementation of collection and adding test
adding travis file