Enable tests and fix training test