Fix NN for remote jobs

Add tests to ensure NN behaves correctly to submit number equals 100.