added stub connection, implemented post method, and added more tests