added test for invalid routing keys

also added a debug message for attempts to write shortstr's greater
than acceptable length.