two-step test — Legal Definition, Examples & Cases