Added tests for utils/validateAndProcess