PRESALES-280: Write and implement unit tests