more robust digit test, removed source line