ecc: add test cases for ecc

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>