Add format test and Mock method