Move Karma tests under frontend/tests

See 6ec5ca5, #2256

Continuation of code reorganisation started in #2193.