Refactor sample tests

I reduced code redundancy by merging StdIOTest and LocalFileSystemTest
into a single CrashingApp test application.