validation test
error handling test