Integration testing

close #1