add unit test for new discard alias
update more old camelcase method calls to the new underline names