Set slimmer format to 'calculator'

This also fixes the error when the artefact is nil.

Also cleaned up the test setup.