Improve parameters tests generation
Add generated simple training tests
Fix training setters and getters bugs found from tests