fixed the required_bake_time test and wrote corresponding required_bake_time method.