Add a proper test and a helpful extension method.