Return error code
Tests for return error code