Added CachedSQLDataMapper::refreshEntity(), updated tests