Add ExpGenerator test

Part of #601. Also addresses #609.

@scottpurdy