add note index unit test