Hoist up test / junit dependency and improve test code dependencies

git-svn-id: http://myrrix-recommender.googlecode.com/svn/trunk@617 0d189622-dca1-7e23-9e30-e8815eb7bd2f