Fixed dependency.
Added test pattern.