Fixed issue with EntityManager#clear(), EntityManager#detach() calls
Refactored tests
Added TaggingRepository