Simplifying periods and fixing a test