fixed a bug with device update for iOS devices with findOneAndUpdate; added moar tests...

Signed-off-by: Floyd Pink <imbleedingme@googlemail.com>