added test for create share + bugfix on a reference in server