added remove funciton, and test for method existence.