core: tests for shared_helpers.rb

/cc @tmatilai