add code coverage to unit tests
add helper function to get validation function
add helper function to get validation function
add helper function to get validation function