Completed the test code for double type