From a project with a production tree (src/java) and a test tree (src/test)
1. Switch the project tool window to "packages" mode
2. Right click on a package and invoke New Class
3. Enter class name
4. Select the test tree
5. Enter
Observe that the class went to the production tree and not the test tree as asked.