Refactored file created event handler to be neater.
Added Store test for proper clean up of backend.