generic swap test