Added test (note, you'll need to use the 2013-05-15 or greater API version.  If you merge this code, it should work ok.