Moved the HANGS macro around and a minor format statement.

If anyone would ever need a similar to ``hangs`` functionality, it can be simply implemented and in a more general way. At the moment, this functionality is not used anywhere except ``cram_language`` for which it was originally implemented. I suggest we just move it away for test utilities, which would solve the annoying circular dependency.