use zrevrange for fetching keys from index & added tests for score calculation