openings controller and tests