created tests and the favorite beer method