passing unit and intergation tests