use correct ndem value, add ndem test