Added test for replacing a note's tags