Test for shares was not testing the file shared method