added api tests for validation cases