Add tests

Add tests and update nginx.conf to test