Practicing with data structures and nosetest