Adding tests for NAME.RANDBOUNDNAME when there are no NAMEs in stack.

Related to issue #4 and #2.