Add maps_notify unit test. Fix maps index bug.