Added tests for validate input exceptions.