[WIP] Migrate legacy test 3

My contribution to #1286. I will migrate legacy test 3, as well as modularize tests that encompass multiple test cases, splitting them into individual tests.