add inegration tests and fix requires