Added routines for testing level 1 double functions