added simple unit test module and tests for the range and fragment modules
fixed numerous bugs