Create own tree for tests files and avoid testing files on ENV=productio...

...n (closes #409).