Add some simple test for hals.m
explain beta parameter