Fixes compile warnings in tests because of RAP API deprecation

Change-Id: Iac000f5680769f3c6e0f90df76165688190826fe