frontend: started on should be also set when a build fails
Adding unit test for method update_state_from_dict in builds_logic
When a build failed, started_on wasn't set sometimes so this test is
making sure it is always set when a build fails.
Fixes: #342
Merges: #1031