Updated and add remove test for history