ARQGRA-233: handling stale elements

only test, NOT ready to be merged