Corrected detachment issue when trying to delete an embargo that's associated with a submission.
Fixed the lucene seach test
Fixed StateImplTest