Remove hardcoded line numbers from functional tests

Adding tests should not break tests.