Fix to chain after using set, pause and reset methods
Basic unit tests implemented. Closes #6