updated formatter test implementation