Unit tests for setting a value