Some bugs in share test fixed