Added test framework.

Can we determine this automatically? Adding new resources for testing should become easier that way.