Tests for set and new