added testing and some basic routing