software: add test routines