Renamed and refactored test.
Corrected and simplified compilation of module chunk.
Got rid of ModuleChunk (it makes no sense now).
Minor. Rearranged code.
Extracted method to util class and replaced parameter to Project.