Fix group mocks in Line tests

Added missing semicolons in tests.

Refactored Line centerToCenterGetter to improve readability.