Constructor for testing purposes