minor formatting fixes
minor refactor of test for readability