fix test for apply