I think this exception gets thrown even in production, not just for unit tests => is this the right justification?