Added custom valdiator return value tests to cover zero length array and undefined