added unit tests and an egg setup file