fixing adding note, test cases