hard coded length of base code map
added tests