Testing better

Infrastructure for testing and code coverage