Test for calculating calories