added integrational tests