Add test code for set methods