wrote test for menuimpl.