Modify adapter for test