Tests for register and working register implementation