Jsons should be stored in jsons Dictionary
Only play sound if state changed
Adapted tests