Added tests for format module