Test Cases for Office API. (Reformatted Code)