rewrote tests to unittest instead of nose