tests: fix to make tests only run once