- tests.test_commit: added new testcase

Only update storefiles if the commit was successful (see bug #65)
- core.Package.commit: only update store if the commit was successful

This fixes bug #65