Assign and List directive fixes and tests

Lets require Java & Execution environment and use try-with-resources statement here