Use options.indentMode for indentation

Also change the test samples to use spaces instead of tabs.