Sanity tests and karma config