Fixup open-remote-window test
Use permissions from device instead of expected permissions. Fix open-remote-window test.
Address mdas's review.
Merge pull request #134 from dminor/fix-permissions-tests

Fix permissions tests