added test code from http://insanecoding.blogspot.ie/2014/05/libressl-porting-update.html

Submitted-by: David Carlier <devnexen@gmail.com>
Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>