Simple insertion helper
Add test for bad hostname and port