Refactor led tests