Created test for HappinesAlgorithm