Added a test, which sets up a job and verifies that the build state is s...

...et to unstable.