Add attributes to Mock object to fix Travis build