Adds delay to checking map state in test

To allow the map time to load this commit adds a delay before checking
the map state.