started writing test (not done yet)

Also done simple rights handle (not all is done however)