[test] Ported over the tests from the fortress project