Testing for a Constant Mean Function using Functional Regression