complete testing functionality