Add test coverage for periods

Also ensure that we are testing the local code, rather than what might
be checked out elsewhere on our GOPATH.