Learning cuba and testing one step at a time