[shared] fix unit tests