Implemented tests for most functions. TestMul must be corrected!