Add a first test with Spec

Currently exporting everything from Whippet so we can test what are
effectively private functions. Doesn’t feel quite right, but useful for
figuring stuff out as I go.