Added getMenu test case and associated functionality.