In trying to create a test project to make a small sample I have found out a few things, and returning to my real project and moving my test into my shared module's "commonTest" directory it now fail complaining that I have no JDK set.
I the project settings->Build,Execution,Deployment->Build Tools->Gradle I do have a JDK set, so presumably it needs setting somewhere else?