Test cases for function expression as object methods