tests for constructor with valid params