testing mongoose validation