adding client.hasMode function
improving test
improving test