use custom exception classes in tests to make sure callables work