filtering and creating data for test