Fix some issues and typo

1. An uppercase string will equal to lowercase string
2. add the missing space
3. finish test case when expected error is got
4. this case should expect a 404 status not 200