Updated test case to handle single-file script detection