An adaptive model checking test for functional linear model