Update tests to use the mock JApplicationCms object and mock JSession where used