[doc] Fill out Test and Functional Test

Show specs2, mockito and unit testing all on ScalaTest.md, and provide appropriate imports.
Fix a bad link in ScalaDependencyInjection.md
Normalize all the functional testing code to be clearer, show the dependency on Application
Move most snippets out into actual tests.