JUnit Test cases for Actions and Functions