Two minor tweaks after running findbugs

* Removed redundant null checks in TestSessionController
* Made base64 -> string encoding explicit