Add coverage, nose packages and improve tests