The specification of earnings functions: Tests and implications