fixed some bugs; FilePackager is properly tested