code analyze and tests