Added a method swap test