Implemented tests.
Tests enhanced.