Corrected an error related to assert
Simple testing added.
Tests added.
Tested.
Source tested.
Refactoring