Ordering keys hash used in tests

Every key hash was ordered by sort function. The function test indirect_calls of DOT.t file was changed to accommodate the explicit ordering.