Testing the Q Theory of Investment in the Frequency Domain