keyword checking implemented in foo method, tests pass