decouple some of the test code from the component code