fixing tests and removing whitespace