tests for value method