fixed lookup relationship
fixed few methods on rboxpermissionplug
added few more tests