Fixed test

Use assertEquals instead of throwing a RuntimeException of all things
from test method.
Fixed another test

Use assertEquals instead of throwing RuntimeException from method in
test class.
OVT-8223: Fixed

StartDate of codes should not be set when updating codes that are of
type draft already.