comments: notes unit tests and fixes

* Updated note unit tests and fixed some minor found bugs;
* Fixed issue with notes/ comments selected option not being correctly displayed
in UI when no comments existed;

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>