A 21-year-old male patient has experienced intermittent back pain for 1 year, which is worse at night and in the morning. Over the past week, he developed unexplained swelling and pain in the left knee joint. Which of the following tests should be performed to assist in diagnosis?