added ndem parameter, debugging fluid tests