Added tests for addList and removeList, and also made some minor changes to getListByUser in Core.