added unit tests for collections and fixed failing test for protractor by clearing localstorage