Add a module test for the upr stream state machine

Change-Id: I85a5925c4f97586a1e91b3d472981b0580d5b9dd