This feels like a very fragile way of testing it. And if it ever breaks a nightmare to debug.