added more frontend tests, removed  global