Using nose for tests
Move parameters checking to another class
More API work.