Moves tests into module so they can be run as part of the importing app