A test for this would be awesome.