rewrote the test and removed typos