[tests] refactor ApiSignature test