Implemented tests for all project's functions.