give post_xform_to_couch a default domain of 'test-domain'

and only allow this function to be used in tests

fixes: http://manage.dimagi.com/default.asp?106957