restored mistakenly forgotten ruby routine for context role testing.