Forgot an import in new unit test.
Fixed bug in permute. Unit tests now pass locally.