Add test for value() method