finalized unit tests