fix: add error handling for function params to prevent server crash

- add tests for LxCrypto
Merge remote-tracking branch 'origin/master'