refactor method, add tests, refactor code (indentation etc.)

2 jobs for b2b in 30 seconds (queued for 8 seconds)
latest