updated get cookie to use forEach
Added tests for ID module