Added tests for model construction