we should move these helper methods to the testing component