trying to fix logic
found that with no user logged in there is no user to callr estaruant id ergo the test will fail to call a method on a nil class