HCSVLAB-454: Added cancan authorisation and some test fix.