Fixed the constructor bug and changed a test due to it