Fixed native extention test

Fixes #1541