Sure you can do that, but what if app X decides to return 42 and app Y 32? The tests will work fine in isolation but if you run them together they will break. Had lots of those problems when i tried to define my own DatabaseException in my tests which break all  the core tests.