Expose AppInstance#crash_count, and using a real AppInstance in test.