ref #53 Added integration tests