adding unit test for --kextract option