Test cases and docs