Fixed broken test cases and added comments to tests.