lazy list comprehension, remove period_as_test

as per pull request comments