Added integration tests

Refers to #37