Move testing logic