add nosetests and coverage