start test integration for #5
fix bug of my own devising.