simplified unittest routine