Microsoft is testing a software that determines a user's mood based on their smartphone usage in a bid to catch up to iOS and Android.