using post instead of get, added test