Separate computation test to a method.