Added redis key
Moved to using setnx
Added testes for creating existing objects, nonexisting objects
Changed expection format string to avoid deprecation warning