Check frame buffer status before continuing with tests.

Also added vagrant that mimics travis CI's VM.