Fix check in sample BM000XTest for use of 'unknown' event processing; minor fix of deprecated APIs