shared unit tests and few fixes (see shared.json changes)