Testing helpers