Implementing testcases for User and Session controllers.

Add testcases and helpers to write a testcase into
ApplicationSpec.scala.