Added the custom ftype method and tests.