Improve test stability by resetting API state after each spec