Create own tree for tests files and avoid testing files on ENV=production (fixes #409).