I think this particular error is because you are in the monitor. If you run that from the partition root, I think it that particular error will go away. I couldn't get it to do anything there though. I also can't find any documentation on test-monitor (sounds like a cool feature) but it would appear, based on my poking at it, that it is for testing monitoring scripts, not actual ltm monitors (hopefully someone will correct me, as I would really like this myself the way you are trying to use it).
If you are running 11.6, a new feature was added to add debugging to HTTP/HTTPS monitors so you can see what LTM is seeing (available in the individual member settings of a pool, not on the monitor itself).
When I'm trying to develop an HTTP/HTTPs monitor, I typically just use telnet or openssl and send the commands manually.