Add asserts for locations to TestReference