Fix minor faults in alter 1, added middleware study extract  tests to alter 2
Same as before did not commit