This is pure implementation - it might be the only convenient place to test it, but I'm not sure it should be here.