NDB testing error