Bugfix: replace test by training