moved map_stuff to test folder
added unit tests using minunit