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