[BUG #8471] fixed test
[BUG #8471] use native Object.keys