fix integration test and null pointer exception for updating entities on a workspace