add tests for nanops
Merge pull request #7427 from toddrjen/nantest

add unit tests for nanops