complete fitness test function