fixed. #2

Add unit test