Partial testing of code