Separate unit test classes into different files.
Split all other cases of two tests in the same file.
Fix recent unit test failures.
Fix the empty CAS key issue.