issue #6 adding security handler and mock of security store