A Protected IP-Core Test Generation