Implement unit test for issue#8 trigger