Removed test dependency on cairo backend.

None of the tests has a main function anymore, because of this.