Taking duplicate codes and joining scenarios tests