Some tests and fixed a typo