Add test for format expression function