few unit tests for bCMS

to help us debug the search keyword bug: https://github.com/GigaOM/legacy-pro/issues/3248