Add unit tests to exercise common_exceptions_400 decorator