Added some chmod so the functional tests will work with a different user in ssh.
Merge pull request #32 from Herzult/tests-with-different-user

Using chmod in functional tests.