Added tests for delete and validation