refactoring menu tests to include DB functionality