Virtualize dependencies and create test framework