Added test framework.

Actually, it might be OK, given the context. A comment could help in clearing this up.