added trainer tests