fixed math tests
fixed md5 for streams and added tests