Add test for the delete workspace rest API
Fix bug building error response in the WorkspaceEntry delete method