Add functionality and tests for clearing languages selection

Change-Id: I918c6f534ffc424b2df554c2fabe0694dccd2494