Added tests to make sure classes are final.