bugfix for baroclinicity where test_flag was not defined earlier