set TRAIN in CommonTest.TestPhase

...to avoid effects of test execution order. The original intention was
to check that TRAIN is the default, but it is better to have consistent
results.
Merge pull request #366 from shelhamer/test-phase-fix

set TRAIN in CommonTest.TestPhase