Put index failure test in its own test class so it doesn't affect other tests, add license header to missing files