Enable adding sources and libraries to tests

This gives testers an easy way to add sources and libraries.