set matplotlib backend to 'Agg' for testing