added code coverage to integrate
modified integrated added nunit tests
modified integrate added errorhandling