Moved source and specs to body to prevent blocking
Added tests for log error and info