Add tests for set.