same transaction or occurrence test — Legal Definition, Examples & Cases