Build controller tests

It may make things clearer to name this function something like TestSynchronizeBuildRunningPodTerminated (to contrast with the previous function)