Added new test for Engine class and internal refe

Change some members to internal for testing
Additional filesof previous comit
Additional files of previous commit
Additional files of previous comit
Additional files of previous comit
Additional files of previous commit