Added MOCK and STUB tests

Added MOCK and STUB tests. Since sharing files is an important part of this software, ran thorough tests.