Determine line number at runtime to make test more robust.

Previously the line number was hard-coded which would've meant it would
have to be changed whenever lines above the test were added or removed.