MULE-7010: Implementation of clear() method in ObjectStore

improving tests
MULE-7010: rebase merge