Fix the presence validator test
Improve code coverage