Fix NN for remote jobs

Add tests to ensure NN behaves correctly to submit number equals 100.
Increase test timeout
Merge branch 'master' into fix-remote-nn
Fix NN problem for remote host with shared fs
Merge pull request #1089 from matthewrmshin/fix-remote-nn

Fix NN for remote jobs