Update nn.js

Update test for nn