Merged set/get test together to one.