add function to change AR adapter used in Rails tests