Corrected spelling and added some code to test.