Fixed a deprecated method call(->secret(...))
fixed tests so exceptions are now not template dependant(reworked exception templates broke the test)
cleaned up the tests a bit