refactor Codecepton tests