Add a LR_VERSION_CHECK macro
test: Add test for LR_VERSION_CHECK macro.