Fixed tests constructors and injections
Added "failure" instead of nothing to avoid a "null error"