Cardiff were beaten 3-2 at Brentford's Griffin Park in their latest friendly game ahead of next month's kick-off.