Add test to database on post method