Fix gtk related test to work OS independently