change tab indentation to spaces, remove tests from main file