Port test functions