Added and fixed test case for stateful prop