Implemented unit test for fade effect.