Add tests and fix issues with extensions, ignores options. Closes GH-33.