Created test functions for Claw and IR classes

IR testing showed strange behaviour and so the IR class functionality
has been temporarily altered.