could not retrieve user due to null type
Updated tests and added loader debugging
Formatting and license header changes only.