Setup constructor for testing