Get Lead by Cookie.  Some refactoring to introduce an Exception type and
new class to run the tests