Removes unnecessary assertion in test.