added both methods --test