Since these are unit tests for unexported stuff, I think it's reasonable to have them here.