Slight speedup of encryption and pw-tests

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Improvements and cleanup of the tests 

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>
Add test for Number160 (hashing seemed suspicious)

Signed-off-by: Nico Rutishauser <nr@hotmail.ch>