Add exception tests for Plug.Builder

The existing tests in Plug.BuilderTest don't cover error cases when exception are raised by bad plugs (both compile-time and runtime exceptions). This commit adds tests for these cases.