Testing for the Stability of the Investment Function