Added some tests and handled permissions for #star and #unstar methods