cleaned up test suite

removed unnecessary instances of os.path.join
standardized string substitution with .format()
created loops for redundant ls/cs checking