Remove warnings by define test constants only once and include everywhere needed

...e needed.