Improved the assertion error message to be a complete sentence and fixed a class-cast test and a null-pointer test.