Merge test projects

Implements #974.