Adding tests.
Removed error logs.