Add SigningAlgorithm and more tests