tidy up layer store

remove redundant calls to spyOn publish