Custom expectation failures now print correctly

We use a hack to find out whether we are in a test file, and if not,
then we go up one stack frame