Simplified test code to reduce spurious test failures.
.gitignore
Remove object on clean.