filled in missing test. beautified