added tests for loading and constructor invocation