trying to make testing stuff more generic