Just run the testsuite with history level on full. The TaskVariablesTest will fail, because of a process instance id which is null for a standalone task.
Ideally this should be addressed by setting up a CI job that verifies the full test suite with a configuration that has full history enabled. Basically one for every history level. Using a maven profile it should be possible to exclude certain tests that might have a dependency on a particular history level configuration.