Add test for valueExists