Testing theories on happiness: a survey and a model