Integrate the Google Test framework.

This is a first step towards addressing #1526.