Fix misuse of Reflect in test code
TestApp runs without crashing (usually)