Adding frontend tests, handle line deletion