Refactors tests, drops chai dep