replace get by post for /profile service and add unit tests