move status_changes counting in separate method + test