Fix playerendpoint tests to use state-changed signal to change state

Change-Id: Ibb61cc72200147ce5ac4c6966fec4a8e62af7f89
playerendpoint tests: Do not use mutex in main loop

Change-Id: I5f1b98a352a030b2d1665ad6b11245f72accdb94