fix cairo reference counting and add more cairo context tests - closes #2031