Added Nose. Added test_api and some test cases.