tests for mapping utility added
method map implemented
use mapping in methods toArray and convertValueToArray