double extensions - added comments and tests
unit tests added