Added test for custom async validator functions