prepare data for test