added test of keys parameters
correction of bug