Currently only the overall functionality is tested using golden files. Make this more accurate by writing unit tests for the different parts.