Add missing methods and tests.