Tests for deploy user only actions

shamelessly ripped off shared tests code from:

http://stackoverflow.com/questions/14507011/how-do-i-get-rspecs-shared-examples-like-behavior-in-ruby-testunit