Add test for $out helper
Merge branch '3.8.x' of github.com:LearnBoost/mongoose into 3.8.x