Added test for returning numbers in multi

I added a test to check that in detect buffers mode the commands that
return numbers return javascript numbers or buffers if they are
provided, and another to test that in multi command