Issue 789: initial commit

Implemented integration test for seach code method. Please review this pull request.