Writing tests. Found a bug.