Tests can now be compiled with -Wextra with no warnings.
Compile tests with -Wextra by default.
Removed C-style cast in favour of C++-style.
Moved function definition out of header.
Added means to check the status of lazy computations.