Extract common functionality to xblock-utils

These tests use a custom scenario for their tests.