Extracted from !310 (closed) it seems like a good idea to have this to quickly catch such error in the tests.