add junit for testing case