Fixed typo in test case
Added argument checking to overriden format method.