Update Q-tests.ts

Add tests for Q.nfapply and Q.nfcall.