rest-cors: corrected a test dependency scope