test: added get first character testcase just translated from PHP script