Fix spelling mistake and add some test code
Gonna PR