Consume addressof and lightweight_test from core