Added a random number test to mapSpec and fixed issues with null and undefined in red black tree