(PE-951) HTTP layer and tests