replace tabs with spaces and update test

Change tabs to spaces and adjust indentats.
Print FAILURE for exit code 1 and SUCCESS for exit code 0 in test.