fixing api testing when no map is created