Merge pull request #7 from thomasritz/fix-tests

Fix tests
file attachments
workaround different behavior of ActiveResource 3.0