adding tests
fixing typos
proper formatting