Companies do this all. the. time. At least Facebook published the results.
Imagine the type of stuff some advertising and marketing companies do to test our behaviours and reactions. I'm sure Google, Apple and a large amount of other corporation are all doing similar things. At least we get to see the results of this research and use it to make better products ourselves.