Adding missing tests of changeAwayStatus
Moving duplicated away code from ui implementations to controller