[BUG #8185] use camelCase
[BUG #8185] fix coding style
[BUG #8185] fix basePath substitution
[BUG #8185] add more tests