Second version with working test. Still no web framework integrated.