added example unit and integration tests for perusal