Add tests for namespace('with')

Add tests for namespace('with')
Also provide a way to test output of each dispatch