Swap test updated for to check keys or Tomes.

Swap method has been updated for to use only keys or Tomes.

Swap test file has been updated for to check than you can't use other kind of parameters, as values.