updated tests and implementing coverage check