initial version of the lavTestScore() function