Modified unit tests and moved them.

Unittests now closer to their respective test functions.

Machine epsilon is now a hard-coded value. This is due to that DmD converts
all floating point to reals during compile time.