Fix read me and auto-generated tests. Add at lease basic test coverage for important parts.