add tests/ directory, support for custom backends, more docs

Added a tests/ directory. To run test you can use

nosetests -vs tests/

Added support for custom backend names in setupBackend